module.exports = (options) => {
  return async (ctx, next) => {
    // 检查并修复 Content-Encoding 头
    if (ctx.headers['content-encoding'] === 'UTF-8') {
      delete ctx.headers['content-encoding'];
    }
    await next();
  };
}; 